<%@ page import="jmysql.CBitacora"%>
<%@ page import="validaciones.IndexData"%>

<%
	if(request.getSession()!=null&&request.getSession().getAttribute("idusuario")!=null)
	{
		CBitacora bi=new CBitacora();
    	bi.insertar((Integer)request.getSession(false).getAttribute("idusuario"), IndexData.FinalizoSesion,(Integer)request.getSession(false).getAttribute("area") , 0);
	}

	HttpSession sesion = request.getSession();
	sesion.removeAttribute("idusuario");
	sesion.invalidate();
%>  
<jsp:forward page="index.jsp"></jsp:forward>